﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02001211 RID: 4625
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class StartCocoonStageScRsp : IMessage<StartCocoonStageScRsp>, IMessage, IEquatable<StartCocoonStageScRsp>, IDeepCloneable<StartCocoonStageScRsp>, IBufferMessage
	{
		// Token: 0x17003A97 RID: 14999
		// (get) Token: 0x0600CF46 RID: 53062 RVA: 0x0022E47B File Offset: 0x0022C67B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<StartCocoonStageScRsp> Parser
		{
			get
			{
				return StartCocoonStageScRsp._parser;
			}
		}

		// Token: 0x17003A98 RID: 15000
		// (get) Token: 0x0600CF47 RID: 53063 RVA: 0x0022E482 File Offset: 0x0022C682
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return StartCocoonStageScRspReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17003A99 RID: 15001
		// (get) Token: 0x0600CF48 RID: 53064 RVA: 0x0022E494 File Offset: 0x0022C694
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return StartCocoonStageScRsp.Descriptor;
			}
		}

		// Token: 0x0600CF49 RID: 53065 RVA: 0x0022E49B File Offset: 0x0022C69B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public StartCocoonStageScRsp()
		{
		}

		// Token: 0x0600CF4A RID: 53066 RVA: 0x0022E4A4 File Offset: 0x0022C6A4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public StartCocoonStageScRsp(StartCocoonStageScRsp other) : this()
		{
			this.wave_ = other.wave_;
			this.cocoonId_ = other.cocoonId_;
			this.battleInfo_ = ((other.battleInfo_ != null) ? other.battleInfo_.Clone() : null);
			this.propEntityId_ = other.propEntityId_;
			this.retcode_ = other.retcode_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600CF4B RID: 53067 RVA: 0x0022E514 File Offset: 0x0022C714
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public StartCocoonStageScRsp Clone()
		{
			return new StartCocoonStageScRsp(this);
		}

		// Token: 0x17003A9A RID: 15002
		// (get) Token: 0x0600CF4C RID: 53068 RVA: 0x0022E51C File Offset: 0x0022C71C
		// (set) Token: 0x0600CF4D RID: 53069 RVA: 0x0022E524 File Offset: 0x0022C724
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Wave
		{
			get
			{
				return this.wave_;
			}
			set
			{
				this.wave_ = value;
			}
		}

		// Token: 0x17003A9B RID: 15003
		// (get) Token: 0x0600CF4E RID: 53070 RVA: 0x0022E52D File Offset: 0x0022C72D
		// (set) Token: 0x0600CF4F RID: 53071 RVA: 0x0022E535 File Offset: 0x0022C735
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint CocoonId
		{
			get
			{
				return this.cocoonId_;
			}
			set
			{
				this.cocoonId_ = value;
			}
		}

		// Token: 0x17003A9C RID: 15004
		// (get) Token: 0x0600CF50 RID: 53072 RVA: 0x0022E53E File Offset: 0x0022C73E
		// (set) Token: 0x0600CF51 RID: 53073 RVA: 0x0022E546 File Offset: 0x0022C746
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SceneBattleInfo BattleInfo
		{
			get
			{
				return this.battleInfo_;
			}
			set
			{
				this.battleInfo_ = value;
			}
		}

		// Token: 0x17003A9D RID: 15005
		// (get) Token: 0x0600CF52 RID: 53074 RVA: 0x0022E54F File Offset: 0x0022C74F
		// (set) Token: 0x0600CF53 RID: 53075 RVA: 0x0022E557 File Offset: 0x0022C757
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint PropEntityId
		{
			get
			{
				return this.propEntityId_;
			}
			set
			{
				this.propEntityId_ = value;
			}
		}

		// Token: 0x17003A9E RID: 15006
		// (get) Token: 0x0600CF54 RID: 53076 RVA: 0x0022E560 File Offset: 0x0022C760
		// (set) Token: 0x0600CF55 RID: 53077 RVA: 0x0022E568 File Offset: 0x0022C768
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Retcode
		{
			get
			{
				return this.retcode_;
			}
			set
			{
				this.retcode_ = value;
			}
		}

		// Token: 0x0600CF56 RID: 53078 RVA: 0x0022E571 File Offset: 0x0022C771
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as StartCocoonStageScRsp);
		}

		// Token: 0x0600CF57 RID: 53079 RVA: 0x0022E580 File Offset: 0x0022C780
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(StartCocoonStageScRsp other)
		{
			return other != null && (other == this || (this.Wave == other.Wave && this.CocoonId == other.CocoonId && object.Equals(this.BattleInfo, other.BattleInfo) && this.PropEntityId == other.PropEntityId && this.Retcode == other.Retcode && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600CF58 RID: 53080 RVA: 0x0022E600 File Offset: 0x0022C800
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.Wave != 0U)
			{
				num ^= this.Wave.GetHashCode();
			}
			if (this.CocoonId != 0U)
			{
				num ^= this.CocoonId.GetHashCode();
			}
			if (this.battleInfo_ != null)
			{
				num ^= this.BattleInfo.GetHashCode();
			}
			if (this.PropEntityId != 0U)
			{
				num ^= this.PropEntityId.GetHashCode();
			}
			if (this.Retcode != 0U)
			{
				num ^= this.Retcode.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600CF59 RID: 53081 RVA: 0x0022E6A0 File Offset: 0x0022C8A0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600CF5A RID: 53082 RVA: 0x0022E6A8 File Offset: 0x0022C8A8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600CF5B RID: 53083 RVA: 0x0022E6B4 File Offset: 0x0022C8B4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.Wave != 0U)
			{
				output.WriteRawTag(16);
				output.WriteUInt32(this.Wave);
			}
			if (this.battleInfo_ != null)
			{
				output.WriteRawTag(34);
				output.WriteMessage(this.BattleInfo);
			}
			if (this.CocoonId != 0U)
			{
				output.WriteRawTag(56);
				output.WriteUInt32(this.CocoonId);
			}
			if (this.PropEntityId != 0U)
			{
				output.WriteRawTag(88);
				output.WriteUInt32(this.PropEntityId);
			}
			if (this.Retcode != 0U)
			{
				output.WriteRawTag(112);
				output.WriteUInt32(this.Retcode);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600CF5C RID: 53084 RVA: 0x0022E764 File Offset: 0x0022C964
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.Wave != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Wave);
			}
			if (this.CocoonId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.CocoonId);
			}
			if (this.battleInfo_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.BattleInfo);
			}
			if (this.PropEntityId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.PropEntityId);
			}
			if (this.Retcode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Retcode);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600CF5D RID: 53085 RVA: 0x0022E804 File Offset: 0x0022CA04
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(StartCocoonStageScRsp other)
		{
			if (other == null)
			{
				return;
			}
			if (other.Wave != 0U)
			{
				this.Wave = other.Wave;
			}
			if (other.CocoonId != 0U)
			{
				this.CocoonId = other.CocoonId;
			}
			if (other.battleInfo_ != null)
			{
				if (this.battleInfo_ == null)
				{
					this.BattleInfo = new SceneBattleInfo();
				}
				this.BattleInfo.MergeFrom(other.BattleInfo);
			}
			if (other.PropEntityId != 0U)
			{
				this.PropEntityId = other.PropEntityId;
			}
			if (other.Retcode != 0U)
			{
				this.Retcode = other.Retcode;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600CF5E RID: 53086 RVA: 0x0022E8A8 File Offset: 0x0022CAA8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600CF5F RID: 53087 RVA: 0x0022E8B4 File Offset: 0x0022CAB4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num <= 34U)
				{
					if (num == 16U)
					{
						this.Wave = input.ReadUInt32();
						continue;
					}
					if (num == 34U)
					{
						if (this.battleInfo_ == null)
						{
							this.BattleInfo = new SceneBattleInfo();
						}
						input.ReadMessage(this.BattleInfo);
						continue;
					}
				}
				else
				{
					if (num == 56U)
					{
						this.CocoonId = input.ReadUInt32();
						continue;
					}
					if (num == 88U)
					{
						this.PropEntityId = input.ReadUInt32();
						continue;
					}
					if (num == 112U)
					{
						this.Retcode = input.ReadUInt32();
						continue;
					}
				}
				this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
			}
		}

		// Token: 0x04005318 RID: 21272
		private static readonly MessageParser<StartCocoonStageScRsp> _parser = new MessageParser<StartCocoonStageScRsp>(() => new StartCocoonStageScRsp());

		// Token: 0x04005319 RID: 21273
		private UnknownFieldSet _unknownFields;

		// Token: 0x0400531A RID: 21274
		public const int WaveFieldNumber = 2;

		// Token: 0x0400531B RID: 21275
		private uint wave_;

		// Token: 0x0400531C RID: 21276
		public const int CocoonIdFieldNumber = 7;

		// Token: 0x0400531D RID: 21277
		private uint cocoonId_;

		// Token: 0x0400531E RID: 21278
		public const int BattleInfoFieldNumber = 4;

		// Token: 0x0400531F RID: 21279
		private SceneBattleInfo battleInfo_;

		// Token: 0x04005320 RID: 21280
		public const int PropEntityIdFieldNumber = 11;

		// Token: 0x04005321 RID: 21281
		private uint propEntityId_;

		// Token: 0x04005322 RID: 21282
		public const int RetcodeFieldNumber = 14;

		// Token: 0x04005323 RID: 21283
		private uint retcode_;
	}
}
